<div class="animated fadeInRight ecommerce">

    <div class="ibox ">
        <div class="ibox-title">
            <h5>查询条件</h5>
            <div class="ibox-tools" style="top:10px;">

            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" placeholder="订单编号" v-model="storeOrderCartInfo.conditions.orderId"
                            class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <select class="custom-select" v-model="storeOrderCartInfo.conditions.cartType">
                            <option selected  value="">请选择类型</option>
                            <option v-for="(item,index) in storeOrderCartInfo.cartTypes" :value="item.statusCd">
                                {{item.name}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <select class="custom-select" v-model="storeOrderCartInfo.conditions.state">
                            <option selected  value="">请选择状态</option>
                            <option v-for="(item,index) in storeOrderCartInfo.states" :value="item.statusCd">
                                {{item.name}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" placeholder="请输入商品名称" v-model="storeOrderCartInfo.conditions.prodName"
                            class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" placeholder="用户名称" v-model="storeOrderCartInfo.conditions.personName"
                            class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryOrdersMethod()">
                        <i class="fa fa-search"></i> 查询
                    </button>
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_resetOrdersMethod()">
                        <i class="fa fa-repeat"></i> 重置
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>订单信息</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_exportOrder()">
                    <vc:i18n name="导出" namespace="reportPayFeeDetail"></vc:i18n>
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">订单号</th>
                        <th class="text-center">商品名称</th>
                        <th class="text-center">购买数量</th>
                        <th class="text-center">平台</th>
                        <th class="text-center">类型</th>
                        <th class="text-center">用户名称</th>
                        <th class="text-center">支付金额</th>
                        <th class="text-center">优惠金额</th>
                        <th class="text-center">订单状态</th>
                        <th class="text-center">创建时间</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="order in storeOrderCartInfo.orders">
                        <td class="text-center">{{order.orderId}}</td>
                        <td class="text-center">
                            <div v-for="(cart,cIndex) in order.storeOrderCartDtos" :key="cIndex">{{cart.prodName}}</div>
                        </td>
                        <td class="text-center">
                            <div v-for="(cart,cIndex) in order.storeOrderCartDtos" :key="cIndex">x {{cart.cartNum}}</div>
                        </td>
                        <td class="text-center">{{order.appName}}</td>
                        <td class="text-center">{{order.cartType == '3307'?'服务':'商品'}}</td>
                        <td class="text-center">{{order.personName}}</td>
                        <td class="text-center">{{order.payPrice}}</td>
                        <td class="text-center">{{order.deduction || 0}}</td>
                        <td class="text-center">{{order.stateName}}</td>
                        <td class="text-center">{{order.createTime}}</td>
                        <td class="text-center">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs" v-if=" order.state == '0' && order.cartType == '3306' "
                                    v-on:click="_openSendOrderCartModel(order)">发货
                                </button>
                                <button class="btn-white btn btn-xs" v-if=" order.state == '00' && order.cartType == '3306' "
                                    v-on:click="_toStockUpOrder(order)">备货完成
                                </button>
                                <button class="btn-white btn btn-xs" v-if="order.state != '1001'" v-on:click="_openOrderPrint(order)">补打小票
                                </button>
                                <button class="btn-white btn btn-xs" v-on:click="_openOrderDetailModel(order)">订单详情
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>

    </div>
    <vc:create path="order/sendStoreOrderCart"></vc:create>
</div>
